﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<volva.Models.Video>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Bæta við myndbandi</h2>
    
    <%Response.Write(ViewData["Message"]); %>
    
    <% using (Html.BeginForm()) { %>
        <%= Html.ValidationSummary(true, "Villur komu upp við innsetningu myndbands") %>
        <div>                
        <fieldset>
                <legend>Myndbands upplýsingar</legend>
                <div class="editor-label">
                    Titill
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.name, new { @class = "text" })%>
                    <%= Html.ValidationMessageFor(m => m.name) %>
                </div>
                
                <div class="editor-label">
                    Hlekkur á myndband
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.embeddCode, new { @class = "text" })%>
                    <%= Html.ValidationMessageFor(m => m.embeddCode) %>
                </div>
                
                <div class="editor-label">
                    Lýsing
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.description, new { @class = "text" })%>
                    <%= Html.ValidationMessageFor(m => m.description) %>
                </div>
                
                <div class="editor-label">
                    Slóð á mynd með myndbandi (80x80px)
                </div>
                <div class="editor-field">
                    <%= Html.TextBoxFor(m => m.thumbnail, new { @class = "text" })%>
                    <%= Html.ValidationMessageFor(m => m.thumbnail) %>
                </div>
                
                <div class="editor-label">
                    <%= Html.CheckBoxFor(m => m.NSFW)%>
                    Bannað börnum
                </div>
                <input name="stationId" type="hidden" value="<%= (ViewData["stationId"]) %>" />
                
                <p>
                    <input type="submit" value="Skrá myndband" class="btn" />
                </p>
                </fieldset>
        </div>
    <% } %>

</asp:Content>
